<!DOCTYPE html>
<html xmlns:v-on="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="denglu">
			<h1>{{title}}</h1>
			<input type="text" v-model="fname" /><br />
			<input type="text" v-model="fpassword" /><br />
			<input type="button" v-on:click="login" value="提交" />
		</div>
	</body>
	<script>
		var vm = new Vue({
			el: "#denglu",
			data: {
				title:"Hello World",
				fname:"输入账号",
				fpassword:"请输入密码"
			},
			methods:{
				login:function(){
					var strname=vm.fname;
					var strpassword=vm.fpassword;
					obj.login(strname,strpassword)
				}
			}
		});
	</script>
</html>
